#pragma once

#include "DM/Core/Layer.h"
#include "DM/Events/MouseEvent.h"
#include "DM/ImGui/ImGuiWindowAPI.h"
#include "DM/ImGui/ImGuiRendererAPI.h"

namespace DM {

	class DM_API ImGuiLayer: public Layer
	{
	public:
		ImGuiLayer();
		~ImGuiLayer();

		virtual void OnAttach()override;
		virtual void OnDetach()override;
		virtual void OnEvent(Event& event) override;

		virtual void OnImGuiRender() override;

		void Begin();
		void End();
	private:
		Ref<ImGuiWindowAPI> m_Window;
		Ref<ImGuiRendererAPI> m_Renderer;
		float m_Time;
	};
}